import * as Mock from 'mockjs';

export default {
  'GET /api/profile': {
    success: 'SUCCESS',
    status: 'SUCCESS',
    data: {
      name: 'kurisu',
      department: '部门经理',
      mail: 'name@gmail.com',
      avatar: 'http://cdn.image.lihuacats.com/images/2020/01/12/FBC71CAC-E582-4EAA-950A-9643862C7E1C.th.jpg',
      userid: 123,
    },
  },

  'GET /api/list': {
    success: 'SUCCESS',
    data: {
      list: Mock.mock({
        'list|1-10': [
          {
            'id|+1': 1,
          },
        ],
      }),
    },
  },

  'GET /api1/operating/receive/stay/page': {
    success: true,
    code: '200',
    msg: '',
    data: Mock.mock({
      total: 55,
      'data|10': [
        {
          'shippingId|+1': 1,
          shippingLabel: 'xasxasa',
          mainImage: '商品图片',
          productName: '商品名',
          attrValue: '规格值',
          paramExtra: '额外描述',
          orderNo: '订单编号',
          sellerId: 123,
          sellerNickName: '卖家名',
          fromTelephone: '发货人电话',
          fromName: '发货人',
          shippingStatus: 1,
          shippingTime: '发货时间',
        },
      ],
    }),
  },
  'GET /api1/operating/receive/already/page': {
    success: true,
    code: '200',
    msg: '',
    data: Mock.mock({
      total: 55,
      'data|10': [
        {
          'shippingId|+1': 1,
          shippingLabel: 'xasxasa',
          mainImage: '商品图片',
          productName: '商品名',
          attrValue: '规格值',
          paramExtra: '额外描述',
          orderNo: '订单编号',
          sellerId: 123,
          sellerNickName: '卖家名',
          fromTelephone: '发货人电话',
          fromName: '发货人',
          shippingStatus: 1,
          shippingTime: '发货时间',
        },
      ],
    }),
  },
};
